package com.easygo.client;

import com.easygo.pojo.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("EASYGO-AD-SERVER")
public interface ContentClient {

    @GetMapping("/content_list/{categoryId}")
    public List<Content> getContentsByCategoryId(@PathVariable("categoryId") Long categoryId);
}
